﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SysKey.aspx.cs" Inherits="SysKey" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_BreadCrumbs" runat="Server">
    <ul class="breadcrumb">
        <li><i class="icon-home home-icon"></i><a href="./default.aspx">首页</a> <span class="divider">
            <i class="icon-angle-right arrow-icon"></i></span></li>
        <li><a href="#">系统管理</a> <span class="divider">
            <i class="icon-angle-right arrow-icon"></i></span></li>
        <li><a href="#">系统键值</a> </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="page-header position-relative">
        <h1>系统键值
							<small>
                                <i class="icon-double-angle-right"></i>
                                用于下拉框选项的显示，设定后请勿轻易删除修改，否则会影响下次编辑时该项的显示
                            </small>
        </h1>
    </div>
    <div class="row-fluid">
        <div class="span12">
    <table id="sample-table-1" class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
                <th>主键</th>
                <th>说明</th>
                <th></th>
            </tr>
        </thead>

        <tbody>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr>
                        <td title='<%# Eval("KeyName") %>'>
                    <%# Eval("KeyDisplay") %>
                        </td>
                        <td>
                            <%# Eval("KeyDesc") %>
                        </td>
                        <td>
                            <a href="javascript:EditKey('<%# Eval("KeyName") %>','<%# Eval("KeyDisplay") %>')">编辑</a>
                        </td>
                    </tr>

                </ItemTemplate>
            </asp:Repeater>
            
        </tbody>
    </table>
            </div>
        </div>
    <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel">Modal header</h3>
        </div>
        <div class="modal-body">
            <iframe id="SysValue" src="SysKeyValue.aspx" style="border:0; width:100%; height:150px"></iframe>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Foot" runat="Server">
    <script>
        function EditKey(KeyName, keyDisplay) {
            $("#myModalLabel").html(keyDisplay+"("+KeyName+")");
            $("#SysValue").attr("src", "SysKeyValue.aspx?KeyName=" + KeyName)
            $("#myModal").modal("show");//
        }

    </script>
</asp:Content>

